package com.java8.zhangzixiang;

public class Demo02 {
  public static void main(String[] args) {
    StudentService ss1 = new StudentServiceImpl();
    ss1.show("ss1");

    StudentService ss2 = new StudentService() {
      @Override
      public void show(String msg) {
        System.out.println("匿名内部类借口"+msg);
      }
    };

    ss2.show("ss2");

    StudentService ss3 = msg -> System.out.println("lambda表达式接口"+msg);

    ss3.show("ss3");

  }
}
